<%--
  Created by IntelliJ IDEA.
  User: HelloKitty
  Date: 2021/5/7
  Time: 10:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<html>
<head>
    <%-- 用以说明主页制作所使用的文字以及语言 --%>
    <meta http-equiv="Content-Type" content="text/html" charset='UTF-8"'>
    <meta http-equiv="Content-Language" content="zh-CN">
    <title>Title</title>
</head>
<body>

    <a href="hello">helloworld</a>

    <h1>@RequestMapping使用</h1>
    <a href="/handle01">test01：写在方法上的@RequestMapping</a>

    <h1>测试@RequestMapping的属性</h1>
    <a href="/haha/handle02">test02：@RequestMapping的属性测试：method</a>
    <%-- 将请求改为POST形式 --%>
    <form action="/haha/handle02" method="post">
        <input type="submit">
    </form>

    <a href="/haha/handle03">test03：@RequestMapping的属性测试：params</a><br/>
    <a href="/haha/handle04">test04：@RequestMapping的属性测试：headers</a>

    <hr/>
    <h1>@RequestMapping的Ant风格的URL</h1>
    <a href="/antTest01">antTest01：精确请求地址</a>

    <hr/>
    <h1>@PathVariable路径变量</h1>
    <a href="/user/abc">@PathVariable：获取路径变量</a><br/>
    <a href="/user/def">@PathVariable：获取路径变量</a>

</body>
</html>